<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
			<title>更改文件</title>
			<link rel="stylesheet" type="text/css" href="../css/style1.css" />
			<link rel="stylesheet" type="text/css" href="../css/base.css" />
			<link rel="stylesheet" type="text/css" href="../css/indexbody.css" />
			<script type="text/javascript" src="../js/frame.js"></script>

			<script type="text/javascript">
			window.onload = function() {
				document.getElementById("hide").style.display = "none";
				document.getElementById("sc").style.display = "none";
				document.getElementById("vip").style.display = 'none';
				document.getElementById("mb").style.display = 'none';
				document.getElementById("sys").style.display = 'block';
			}

</script>
			<style>
.coolbg2 {
	border: 1px solid #000000;
	background-color: #F2F5E9;
	height: 18px
}
</style>
			<script language='javascript'>
function CheckSubmit()
{
	if(document.form1.title.value==""){
		alert("请设定媒体标题！");
		document.form1.title.focus();
		return false;
	}
}
</script>
	</head>
	<body background='../images/allbg.gif' leftmargin='8' topmargin='8'>
		<div id="container">
			<jsp:include page="../header.jsp"></jsp:include>
			<div style="float: left; width: 195px; height: 550px">
				<jsp:include page="../leftnav.jsp"></jsp:include>
			</div>
			<div
				style="float: left; overflow-y: scroll; overflow-x: hidden; width: 785px; height: 550px;">
				<table width="99%" border="0" cellpadding="3" cellspacing="1"
					bgcolor="#D6D6D6">
					<tr>
						<td height="19" background='../images/tbg.gif'>
							<table width="98%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="2%" align="center" valign="middle">
										<img src="../images/item_tt2.gif" width="7" height="15">
									</td>
									<td width="44%">
										<strong>更改媒体：</strong>
									</td>
									<td width="54%" align="right">
										[
										<a href='media_main.php'><u>附件/媒体数据管理</u>
										</a>]
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td height="19" bgcolor="#ffffff">
							<img src="../images/help.gif" border="0">
								提示：图片类型仅支持jpg、png、gif、wbmp格式，flash为.swf格式，视音频和附件为限定扩展名的类型(可在系统参数中修改)。
							
						</td>
					</tr>
					<tr>
						<td height="69" align="center" valign="top" bgcolor="#FFFFFF">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<form name='form1' action="media_edit.php" method="POST"
									onSubmit="return CheckSubmit();">
									<input type="hidden" name="dopost" value="save">
										<input type="hidden" name="aid" value="5">
											<tr>
												<td width="15%" height="30" align="left" bgcolor="#FFFFFF"
													class='bline'>
													媒体类型：
												</td>
												<td width="85%" height="25" align="left" bgcolor="#FFFFFF"
													class='bline'>
													<input type="radio" name="mediatype" class="np" value="1"
														checked>
														图片 <input type="radio" name="mediatype" class="np"
															value="2">
															FLASH <input type="radio" name="mediatype" class="np"
																value="3">
																视频/音频 <input type="radio" name="mediatype" class="np"
																	value="4">
																	附件/其它 
												</td>
											</tr>
											<tr>
												<td height="30" align="center" bgcolor="#FFFFFF"
													class='bline'>
													说明标题：
												</td>
												<td height="25" align="left" bgcolor="#FFFFFF" class='bline'>
													&nbsp;
												</td>
											</tr>
											<tr>
												<td height="30" align="center" bgcolor="#FFFFFF"
													class='bline'>
													参数说明：
												</td>
												<td height="30" colspan='2' align="left" bgcolor="#FFFFFF"
													class='bline'>
													图片不需要指定"宽"、"高"，其它附加参数仅方便多媒体文件管理，没其它含义
												</td>
											</tr>
											<tr>
												<td height="30" align="center" bgcolor="#FFFFFF"
													class='bline'>
													附加参数：
												</td>
												<td height="25" align="left" bgcolor="#FFFFFF" class='bline'>
													宽：
													<input name="mediawidth" type="text" id="mediawidth"
														size="5" value="264">
														(像素) 高： <input name="mediaheight" type="text"
															id="mediaheight" size="5" value="133">
															(像素) 播放时间： <input name="playtime" type="text"
																id="playtime" size="5" value="0">
																(分钟) 
												</td>
											</tr>
											<tr>
												<td height="30" align="center" bgcolor="#FFFFFF"
													class='bline'>
													原文件：
												</td>
												<td align="left" bgcolor="#FFFFFF" class='bline'>
													<input name="filename" type="text" id="filename"
														style='width: 350px' value="">
														<a href='#' target='_blank'>[查看]</a>
												</td>
											</tr>
											<tr>
												<td height="30" align="center" bgcolor="#FFFFFF"
													class='bline'>
													预览：
												</td>
												<td align="left" bgcolor="#FFFFFF" class='bline'>
													<a href='#' target='_blank'><img src='#' width='200'
															border='0' id='picview'>
													</a>
												</td>
											</tr>
											<tr>
												<td height="25" align="center" bgcolor="#FFFFFF"
													class='bline'>
													更改文件：
												</td>
												<td align="left" bgcolor="#FFFFFF" class='bline'>
													<input name="upfile" type="file" id="upfile"
														style='width: 300px' size='30'>
												</td>
											</tr>
											<tr>
												<td height="62" colspan="2" bgcolor="#FFFFFF" class='bline'>
													<table width="60%" border="0" cellspacing="0"
														cellpadding="0">
														<tr>
															<td align="center" height='48'>
																<input class="np" name="imageField" type="image"
																	src="../images/button_save.gif" width="60" height="22"
																	border="0">
															</td>
														</tr>
													</table>
												</td>
											</tr>
								</form>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</body>
</html>